package com.second.client.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * (ClientCouponRecord)表实体类
 * @author lvyongqi
 * @since 2021-07-25 14:49:49
 */
@Data
@TableName(value = "client_coupon_record")
@ApiModel(value = "优惠券记录实体类")
public class ClientCouponRecord{

    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 优惠券ID
     */
    @ApiModelProperty(value = "优惠券ID")
    private Integer couponId;

    /**
     * 客户Id
     */
    @ApiModelProperty(value = "客户Id")
    private Integer clientId;

    /**
     * 领取状态；1=》已领，0=》未领取
     */
    @ApiModelProperty(value = "领取状态；1=》已领，0=》未领取")
    private Integer claimStatus;

    /**
     * 领取时间
     */
    @ApiModelProperty(value = "领取时间")
    @TableField(fill = FieldFill.INSERT)
    private String receiveTime;

    /**
     * 使用状态；0=》未使用；1=》已使用
     */
    @ApiModelProperty(value = "使用状态；0=》未使用；1=》已使用")
    private Integer useStatus;

    /**
     * 使用时间
     */
    @ApiModelProperty(value = "使用时间")
    private String useTime;

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id")
    private Integer orderId;

    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    /**
     * 客户实体类
     */
    @TableField(exist = false)
    @ApiModelProperty("客户实体类")
    private ClientUser clientUser;

    /**
     * 优惠券实体类
     */
    @TableField(exist = false)
    @ApiModelProperty("优惠券实体类")
    private ClientCoupon clientCoupon;

}
